<template>

<el-collapse>

  <h3>接口列表：</h3>

  <el-collapse-item title="查询所有分类" name="1">
    <div>请求地址：http://istour.isaced.com/api/categories</div>
<pre>
[
  {
    "id": 1,
    "name": "自然风景"
  },
  {
    "id": 2,
    "name": "名胜古迹"
  },
  ...
]
</pre>
  </el-collapse-item>
  <el-collapse-item title="根据类别ID查询某景点列表：" name="2">
    <div>http://istour.isaced.com/api/places?category_id=1</div>
<pre>
[
  {
    "category_id": 1,
    "excerpt": "仙女山以其江南独具魅力的高山草原...",
    "headimg": "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1492651024&di=ebcd550c581c266962ece70d720850ba&imgtype=jpg&er=1&src=http%3A%2F%2Fimg1.gtimg.com%2Fcq%2Fpics%2Fhv1%2F212%2F169%2F2194%2F142708157.jpg",
    "id": 3,
    "name": "仙女山",
    "postion": "107.748697,29.494678"
  },
  {
    "category_id": 1,
    "excerpt": "国家5A级旅游风景...",
    "headimg": "https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2743648914,3309221041&fm=23&gp=0.jpg",
    "id": 4,
    "name": "金佛山",
    "postion": "107.127392,29.049247"
  }
]
</pre>
  </el-collapse-item>
  <el-collapse-item title="根据景点 ID 查询景点详情：" name="3">
    <div>请求地址：http://istour.isaced.com/api/place?id=1</div>
    <div>
<pre>
{
  "category_id": 2,
  "description": "div class=\"par...",
  "excerpt": "解放碑全称“人民解放纪念碑”，位于重庆市...",
  "headimg": "http://ww3.sinaimg.cn/large/79439f49gw1f9juk2tu4kj20zk0nptdy.jpg",
  "id": 1,
  "name": "解放碑",
  "postion": "106.577052,29.557259"
}
</pre>

    </div>
  </el-collapse-item>
</el-collapse>

</template>

<script>
/* eslint-disable */
export default {
  data() {
    return {
      activeNames: ["1"]
    };
  }
};
</script>
